package com.active.service.listener;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

/**
 * Created by Administrator on 2019/6/14 0014.
 */
@Slf4j
public class ProcessStartListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution execution) throws Exception {
        log.info("启动流程实例时开启监听器，参数1：{}，参数2：{}",this.getClass().getSimpleName(),execution.getEventName());
        execution.setVariable("setInStartListener",true);
    }
}
